package com.sudo.dao.admin.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sudo.common.utils.PageBO;
import com.sudo.common.validenum.EnumValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @author 为道日损 2020-04-27 16:52
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysAutoRoleQueryBO extends PageBO {

    @NotBlank(message = "过期状态代码不能为空")
    @EnumValue(strValues = {"YES","NO"},message = "过期状态参数不正确")
    private String isExpired;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime[] createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private LocalDateTime[] expirationTime;

}
